﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="StaticPageMain.ascx.cs" Inherits="AdminX_StaticPages_StaticPageMain" %>
<div id="tab1" class="tab_content"> 
    <div class="load_page">
                                       
            <div class="search-top">
            <ul>
                <li class="title-search-top"><label>  <asp:Label ID="lblLanguage" runat="server" Text="Label"></asp:Label></label></li>
                <li><asp:DropDownList ID="ddlLanguage" runat="server" CssClass="smalls" AutoPostBack="True" onselectedindexchanged="ddlLanguage_SelectedIndexChanged"></asp:DropDownList></li>
                <li class="bt-addnew"><asp:LinkButton ID="btnAddnew" runat="server" CssClass="uibutton icon add" ToolTip="Add News" onclick="btnAddnew_Click1"></asp:LinkButton></li>
            </ul>
                             
            </div>

            <form action=""> 
			<div class="tableName">
				<h6><asp:Label ID="lblTotalRecord" runat="server" Text="Label"></asp:Label></h6>
                            
                <asp:Repeater ID="RpStaticPage" runat="server" 
                    onitemcommand="RpStaticPage_ItemCommand" 
                    onitemdatabound="RpStaticPage_ItemDataBound">
                    <HeaderTemplate>
                        <table class="display data_table2" >
                                   
	                        <thead>
		                        <tr>        
			                        <th><div class="th_wrapp">Tên trang</div></th>
			                        <th><div class="th_wrapp">Mã trang</div></th>
			                        <th><div class="th_wrapp">Ngày thay đổi</div></th>
			                        <th><div class="th_wrapp">Tình trạng</div></th>
                                    <th><div class="th_wrapp"><span style="float:left">Tùy chọn</span> </div></th>
		                        </tr>
	                        </thead>

                            <tbody>
                                </HeaderTemplate>
                                    <ItemTemplate>
     	                                <tr class="odd gradeX">
			                                <td style="text-align:left ;padding-left:20px;">
                                                <div class="grdItemLeft" id="SearchAll" runat="server" >
                                                    <span style="<%# CreateMarginLeft(DataBinder.Eval(Container.DataItem, HOLIZOTAL_COLUMN_NAME), int.Parse(DataBinder.Eval(Container.DataItem, "StaticPageID").ToString())) %>">
                                                        <asp:Label ID="lblName" runat="server" ></asp:Label>
                                                    </span>
                                                </div>
                                                <div class="grdItemLeft" id="NotSearchAll" runat="server">
                                                    <b><asp:Label ID="lbl2ndName" runat="server"></asp:Label></b>
                                                </div>
                                            </td>
                                            <td><asp:Label ID="lblPageCode"   runat="server"></asp:Label></td>
			                                <td><asp:Label ID="lblDateModifined" runat="server"></asp:Label></td>
			                                <td> 
                                                <asp:LinkButton ID="lnkActive" runat="server"  CommandName="Active" CausesValidation="false" ForeColor ="green"></asp:LinkButton>
                                                <asp:LinkButton ID="lnkInactive" runat="server"  CommandName="Inactive" CausesValidation="false" ForeColor="red"  ></asp:LinkButton>
                                            </td>
			                                <td style="width:150px">
                                                <span style="float:left;" class="tip" >
                                                    <asp:LinkButton ID="lnkEdit" runat="server" ToolTip="Edit" CommandName="Edit"><img src="Images/Layout/icon/gray_18/gear.png"></asp:LinkButton>
                                                </span> 
                                                <span style="float:left" class="tip" >
                                                    <asp:LinkButton ID="lnkDelete" runat="server" ToolTip="Delete" CommandName="Delete"><img src="Images/Layout/icon/gray_18/trash_can.png"></asp:LinkButton>
                                                </span>
                                            </td>
		                                </tr>                              	
	                                </ItemTemplate>
	                            <FooterTemplate>
	                        </tbody>

                        </table>
                    </FooterTemplate>
                </asp:Repeater>
			</div>
            <input id="hidSearchStatus" runat="server"  type="hidden" />
		</form>

    </div>
</div>